package com.hnas.core.dao;


import java.util.Collection;
import java.util.List;

import javax.persistence.EntityManager;

/**
 * Data access interface for domain model
 * @author MyEclipse - Hibernate Tools
 */
public interface IBaseHibernateDAO {
	public Object findByID(Class clazz, java.io.Serializable id);
	public Object saveOrUpdate(Object obj);
	public Object saveOrUpdatef(Object obj);
	public void queryByPage(PageBean page, String hql, Object[] paras);
	public void delete(Object o) ;
	public Collection saveOrUpdateAll(Collection c) ;
	
//	public void queryByPage(final PageBean page, final String sql, final Object[] paras, final IResultSet rsHandler);
//	public List getList(final String sql0, final Object[] paras, final IResultSet rsHandler);

	public List getList(String hql, Object ob2[]);

//	public Session openSession();
	EntityManager getEntityManager();
	 void update(Object obj);
	 void updateAll(Collection c);
}